package com.erp.erp_entitys.InspectCargo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class StockVo {

    /**
     * 采购id
     */
    private Integer stockId;
    /**
     * 采购单号
     */
    private String stockNo;
    /**
     * 销售合同号
     */
    private String contractNo;
    /**
     * 供应商名称
     */
    private String supplierName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 交货日期
     */
    private Date deliverDate;
    /**
     * 交货地点
     */
    private String address;
    /**
     * 操作员编码
     */
    private String opCode;
    /**
     * 操作员名称
     */
    private String opName;

    /**
     * 签约单位id
     */
    private String companyId;


    /**
     * 创建时间段
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startCreateTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endCreateTime;

    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getDeliverDate() {
        return deliverDate;
    }

    public void setDeliverDate(Date deliverDate) {
        this.deliverDate = deliverDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpCode() {
        return opCode;
    }

    public void setOpCode(String opCode) {
        this.opCode = opCode;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public Date getStartCreateTime() {
        return startCreateTime;
    }

    public void setStartCreateTime(Date startCreateTime) {
        this.startCreateTime = startCreateTime;
    }

    public Date getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(Date endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append(" \"stockId\":").append(stockId);
        sb.append(", \"stockNo\":\"").append(stockNo).append('\"');
        sb.append(", \"contractNo\":\"").append(contractNo).append('\"');
        sb.append(", \"supplierName\":\"").append(supplierName).append('\"');
        sb.append(", \"createTime\":\"").append(createTime).append('\"');
        sb.append(", \"deliverDate\":\"").append(deliverDate).append('\"');
        sb.append(", \"address\":\"").append(address).append('\"');
        sb.append(", \"opCode\":\"").append(opCode).append('\"');
        sb.append(", \"opName\":\"").append(opName).append('\"');
        sb.append(", \"companyId\":\"").append(companyId).append('\"');
        sb.append(", \"startCreateTime\":\"").append(startCreateTime).append('\"');
        sb.append(", \"endCreateTime\":\"").append(endCreateTime).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
